<?php


namespace BigVideo\Other\Strategy;


use BigVideo\Other\Strategy\Impl\FlyWithRocket;

class SpaceDuck extends  Duck
{

    public function __construct()
    {
        $this->setFlyingStrategy(new FlyWithRocket());
    }

    public function quack()
    {
        echo "。。嘎。。嘎。。嘎。。\n";
    }

    public function display()
    {
        echo "我是无敌太空鸭\n";
    }
}